package com.alongthink.javademo.globalClass;

import lombok.Data;

/**
 * SocketIO推送前端
 */
@Data
public class SocketIOResultBody {
    private String code;
    //客户端监听的事件名称
    private String eventName;
    private String msg;
    private Object data;

    public SocketIOResultBody() {
    }

    public SocketIOResultBody(String code, String eventName, String msg, Object data) {
        this.code = code;
        this.eventName = eventName;
        this.msg = msg;
        this.data = data;
    }
}
